﻿CREATE FUNCTION [maint].[GetDeviceDoP]
(@DbName [sysname])
RETURNS int
AS
BEGIN
	DECLARE @ReturnValue int

	SELECT
		@ReturnValue = [DeviceDoP]
	FROM [config].[DbMaintenance]
	WHERE ([DbName] = @DbName);

	RETURN(@ReturnValue)
END